package com.gxa.community.core.common;

/**
 * 作者： Juran on 2022-07-22 15:18
 * 作者博客：iit.la
 */
public enum ResultMsg {

    REQUEST_PARAMS_ERROR("参数格式错误",-200),
    SMS_PHONE_FORMAT_ERROR("手机号格式错误",-260),
    SMS_PHONE_REQUEST_TIME("一分钟之内只允许请求一次",-261),
    SMS_PHONE_REQUEST_ERROR("请求错误",-262),

    SMS_PHONE_CODE_ERROR("验证码错误",-260),

    SMS_PHONE_CODE_SEND_SUCCESS("发送成功",-260),
    LOGIN_ACCOUNT_INVALID("登录账户无效，请联系管理员",-266),

    LOGIN_SUCCESS("登录成功",267),

    LOGIN_FAILURE("登录失败",-267),

    LOGINOUT_SUCCESS("退出成功",268),

    LOGINOUT_FAILURE("退出失败",-268),
    LOGIN_ACCOUNT_GETUSERINFO_FAILURE("退出失败",269),

    LOGIN_ACCOUNT_GETUSERINFO_SUCCESS("退出失败",-269),

    LOGIN_ACCOUNT_TIPS("您不是团长请先进行团长申请",-270);


    private String msg;

    private Integer code;

    ResultMsg(String msg, Integer code) {
        this.msg = msg;
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public Integer getCode() {
        return code;
    }
}
